home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / recordlock_.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-09  |  1.3 KB  |  37 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ARecordLock wrapper class                                                 *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_ARecordLock_H
  12. #define ASAP_ARecordLock_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/DOS.h>
  17. }
  18.  
  19. class ARecordLock : public RecordLock
  20. {
  21.  public:
  22.  inline BOOL LockRecords(unsigned long timeout);
  23.  inline BOOL UnLockRecords();
  24. };
  25. //----------------------------------------------------------------------------
  26. BOOL ARecordLock::LockRecords (unsigned long timeout)
  27. {
  28.  return ::LockRecords(this, timeout);
  29. }
  30. //----------------------------------------------------------------------------
  31. BOOL ARecordLock::UnLockRecords ()
  32. {
  33.  return ::UnLockRecords(this);
  34. }
  35.  
  36. #endif
  37.